package edu.sandau.basic.mapper;

import edu.sandau.basic.domain.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface RoleMapper {

    Role selectByPrimaryKey(@Param("id") Integer id);

    List<Role> selectAll();

    List<Role> selectActiveRoles();

    int insert(Role role);

    int updateByPrimaryKeySelective(Role role);

    int deleteByPrimaryKey(@Param("id") Integer id);
}
